import time
# . 表示当前路径
from .celery import app

@app.task
def send_email(to='306334678@qq.com'):
    print('====邮件开始发送====')
    time.sleep(3)
    print('====邮件发送完成====')
    return '向%s发送邮件成功！！' % to